RAIL
Section: User Commands (1)
Updated: February 12, 1991
Index
Return to Main Contents
NAME
rail - railroad diagrams for LaTeX
SYNOPSIS
rail
[-+acdit]
[file]
DESCRIPTION
rail
is part of the Rail package, which allows you to use railroad
diagrams with LaTeX.
It will read
file.rai
and create
file.rao
if there are no errors.
If there are any errors,
file.rao
will be removed.
If no
file
argument is given,
rail
reads from standard input and writes to standard output.
OPTIONS
Option arguments start with a minus or a plus sign, followed by one or
more option letters. If a minus sign is used, the options are set. With a
plus sign, the options are reset. By default, no options are set.
Options can also be set or reset from the LaTeX file.
This overrides the corresponding options setting from the command line.
The effect of setting each option is described below.
- -a
-
An alternate layout is used for the
*
operator with an empty second argument.
Instead of transforming
x *
into
() | x +
it is transformed into
() + x.
- -c
-
The input is checked for undefined identifiers and unnamed rules.
Statistics about those are printed to the standard output stream.
- -d
-
Turns on
yacc(1)
debugging output. This only works if the program
has been compiled with
YYDEBUG
defined (which is the default) and your
yacc
supports it.
- -i
-
Index entries are generated for all named rules, i.e., rules that are of
the form
identifier
:
body.
- -t
-
The parse tree of a rule body is included as comments in
file.rao.
FILES
- file.rai
-
rail
input file
- file.rao
-
rail
output file
SEE ALSO
Rail - Syntax Diagrams For LaTeX
AUTHOR
L.W.J. Rooijakkers <lwj@cs.kun.nl>
VERSION
1.0 #1
BUGS
Due to the use of
yacc,
the error messages are not very helpful,
but this is difficult to correct.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- FILES
-
- SEE ALSO
-
- AUTHOR
-
- VERSION
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 01:34:24 GMT, February 01, 2023